<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
#xinxi td, th {
	text-align: center;
}

#xinxi tr:nth-child(2n) {
	background-color: #eeffff;
}

#xinxi {
	width: 95%;
	margin-left: 20px;
	font-size: 15px;
}
</style>
<script type="text/javascript">
	function pop() {

	}
	
	function dja(){
		 $("#da").tips({                       
             side:3,                                      
             msg:'选择角色',    
             bg:'#AE81FF',    

             time:2,         
             x:0,     
             y:0,                   
            
         });

	}
</script>
</head>
<body>
	<div
		style="width: 1050px; height: 620px; background-color: #FFF; margin: 20px;">
		<h4
			style="background-color: #9FB2C2; padding-left: 10px; color: #516D8A; line-height: 40px;">
			<img alt="" src="${initParam.url}/statics/images/title.jpg">房屋列表
		</h4>
		<table class="table table-hover" id="xinxi">
			<tr>
				<th>业主姓名</th>
				<th>小区名</th>
				<th>所在楼栋</th>
				<th>所在房屋</th>
				<th>联系电话</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<c:forEach var="oh" items="${ohlist }">
				<tr>

					<td>${oh.name }</td>
					<td>${oh.community.communityName }</td>
					<td>${oh.tower }</td>
					<td>${oh.houseIN }</td>
					<td>${oh.phone }</td>
					<td>${oh.status}</td>
					<td><a href="ownerhousedetail?id=${oh.id}">查看详情</a> |
					<c:if test='${oh.status=="未认证" }'>
						<a style="color: #bfbfbf;" href="#">投诉</a>
					</c:if> 
					<c:if test='${oh.status=="已认证" }'>
						<a href="reportdetail?id=${oh.id }">投诉</a>
					</c:if> 
					 | 
					 <c:if test='${oh.status=="已认证" }'>
					 	<a href="comdetail?id=${oh.id }">报修</a>
					 </c:if>
					 <c:if test='${oh.status=="未认证" }'>
					 	<a style="color: #bfbfbf;" href="#">报修</a>
					 </c:if>
					 </td>

				</tr>
			</c:forEach>
		</table>
		
	</div>
</body>
</html>